#ifndef DLG_ADDGOOD_H
#define DLG_ADDGOOD_H

#include <QDialog>
#include "supsql.h"

namespace Ui {
class Dlg_AddGood;
}

class Dlg_AddGood : public QDialog
{
    Q_OBJECT

public:
    explicit Dlg_AddGood(QWidget *parent = 0);
    ~Dlg_AddGood();

    void setType(bool isAdd,GoodInfo info={});
private slots:
    void on_btnSave_clicked();

    void on_btnCancel_clicked();

private:
    Ui::Dlg_AddGood *ui;
    bool m_isAdd;
    GoodInfo m_info;
};

#endif // DLG_ADDGOOD_H
